home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20010921-20020314
/
000081_fdc@watsun.cc.columbia.edu_Fri Oct 26 17:00:32 EDT 2001.msg
< prev
next >
Wrap
Text File
|
2002-03-13
|
3KB
|
70 lines
Article: 12895 of comp.protocols.kermit.misc
Path: newsmaster.cc.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Ques with file
Date: 26 Oct 2001 21:01:07 GMT
Organization: Columbia University
Lines: 53
Message-ID: <9rciuj$hv1$1@newsmaster.cc.columbia.edu>
References: <Pine.SOL.4.30.0110241624320.4071-100000@phaet.cedar.buffalo.edu> <9r79hi$mvt$1@newsmaster.cc.columbia.edu> <Pine.SOL.4.30.0110242037050.4071-100000@phaet.cedar.buffalo.edu>
NNTP-Posting-Host: watsun.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1004130067 18401 128.59.39.2 (26 Oct 2001 21:01:07 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 26 Oct 2001 21:01:07 GMT
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:12895
In article <Pine.SOL.4.30.0110242037050.4071-100000@phaet.cedar.buffalo.edu>,
Anish A Patankar <patankar@acsu.buffalo.edu> wrote:
: On 24 Oct 2001, Frank da Cruz wrote:
: > In article
: > <Pine.SOL.4.30.0110241624320.4071-100000@phaet.cedar.buffalo.edu>,
: > Anish A Patankar <patankar@acsu.buffalo.edu> wrote:
: > :
: > : I can get the output from a serial device on the terminal window.
: > : Can anyone please suggest how do i write that output to a file?
: > : I tried the receive -ASname option etc.. but that does help.
: > :
: > Depending on which Kermit program you're talking about, and how you are
: > using it, the easiest way to record stuff coming in a serial port is
: > with the LOG SESSION command.
: >
: > - Frank
: What i am doing is that I am taking a image snapshot and i want the data
: that comes from serial port (using C-Kermit) to be written to a file.
: I tried all the options with the receive and get and that did not help.
: the receive /as:name option does not create a new file....
: Can please anyone know how a file of the incoming data can be created?
:
With the LOG SESSION command, as suggested previously. SEND, RECEIVE,
GET, and such are for protocol transfers. In this case you just want to
capture whatever bytes are arriving -- that's what LOG SESSION is for.
The easiest way to use it is as follows:
set modem type none
set carrier-watch off ; if necessary
set port /dev/ttyS0 ; or whatever
set speed 57600 ; or whatever
set flow rts/cts ; or Xon/Xoff or None
log session shapshot.log ; Start session log
connect
>From this point until you escape back with Ctrl-\c, all the incoming
bytes are recorded in the file called shapshot.log. There are other
ways to do it too, but this is the most straightforward.
All this is assuming it's a text file. If it's a binary file, such as a
Jpeg image, you're not necessarily going to be able to transfer it this way
due to lack of transparency of the connection to arbitrary bit patterns.
Use Kermit or some other protocol to transfer it. If protocol transfers
are not available, try the above sequence but before giving the LOG SESSION
command, use:
set session-log binary
But there can be guarantees. Even if the data arrives intact, how do you
know where the beginning and end are?
- Frank